<?xml version='1.0' encoding='utf-8'?>
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1" xml:lang="zh">

    <head>
        <meta content="{{ uuid }}" name="dtb:uid" />
        <meta content="2" name="dtb:depth" />
        <meta content="0" name="dtb:totalPageCount" />
        <meta content="0" name="dtb:maxPageNumber" />
    </head>
    <docTitle>
        <text>{{ title }}</text>
    </docTitle>
    <navMap>
        {% for chapter in chapters %}
        <navPoint id="chapter_{{ chapter.sort_no }}" playOrder="{{chapter.sort_no}}">
            <navLabel>
                <text>{{chapter.title}}</text>
            </navLabel>
            <content src="chapter_{{ chapter.sort_no }}.html" /> {% if chapter.href == '#' %} {% for child in chapter.children %}
            <navPoint id="chapter_{{ child.sort_no }}" playOrder="{{child.sort_no}}">
                <navLabel>
                    <text>{{child.title}}</text>
                </navLabel>
                <content src="chapter_{{ child.sort_no }}.html" />
            </navPoint>
            {% endfor %} {% endif %}
        </navPoint>
        {% endfor %}
    </navMap>
</ncx>